﻿

@model ActivityEntity

@{

    ViewData["Title"] = "流程步骤 编辑";
   

}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content text-center p-md">
                    <form id="dynamic-form" asp-action="Edit" method="post" class="form-horizontal" role="form">
                        <div asp-validation-summary="@ValidationSummary.All" class="text-danger"></div>
                        <input type="hidden" asp-for="ActivityId" />
                       
                        <div class="form-group">
                            <label asp-for="ActivityName" class="col-md-3 control-label text-right"> 步骤名称</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon">*</span>
                                    <input asp-for="ActivityName" class="form-control" validate="{required:true  ,maxlength:50   }" />
                                </div>
                                <span asp-validation-for="ActivityName" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="ActivityType" class="col-md-3 control-label text-right"> 节点类别</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b text-left">
                                    <span class="input-group-addon"></span>
                                    <select asp-for="ActivityType" tabindex="3" class="select2" ligerui="{initValue:' @Model.ActivityType'}" validate="{required:true}"></select>
                                </div>
                                <span asp-validation-for="ActivityType" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="RecipientType" class="col-md-3 control-label text-right"> 接收人类别</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b text-left">
                                    <span class="input-group-addon"></span>
                                    <select asp-for="RecipientType" tabindex="4" class="select2" ligerui="{initValue:' @Model.RecipientType'}" validate="{required:true}"></select>
                                </div>
                                <span asp-validation-for="RecipientType" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="OrgId" class="col-md-3 control-label text-right">组织机构Id</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon">*</span>
                                    <input asp-for="OrgId" class="form-control" validate="{required:true  ,maxlength:50   }" />
                                </div>
                                <span asp-validation-for="OrgId" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="RecipientId" class="col-md-3 control-label text-right"> 接收人id</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon"></span>
                                    <input asp-for="RecipientId" class="form-control" validate="{required:false  ,maxlength:50   }" />
                                </div>
                                <span asp-validation-for="RecipientId" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="RecipientName" class="col-md-3 control-label text-right"> 接收人名称</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon"></span>
                                    <input asp-for="RecipientName" class="form-control" validate="{required:false  ,maxlength:50   }" />
                                </div>
                                <span asp-validation-for="RecipientName" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="OrderNum" class="col-md-3 control-label text-right"> 排序</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon">*</span>
                                    <input asp-for="OrderNum" class="form-control" validate="{required:true  ,IsInt:true    }" />
                                </div>
                                <span asp-validation-for="OrderNum" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="Remark" class="col-md-3 control-label text-right">描述</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon"></span>
                                    <input asp-for="Remark" class="form-control" validate="{required:false  ,maxlength:200   }" />
                                </div>
                                <span asp-validation-for="Remark" class="text-danger"></span>
                            </div>

                        </div>

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <a class="btn btn-white" asp-action="index" >返  回</a>

                                <button class="btn btn-primary" type="submit">保存</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script type="text/javascript">
    $(function () {
        $(document).ready(function () {
            $(".form-horizontal").CustomForm({
                isValidate: true,
                isTable: false
            });
            $(".form-horizontal").submit(function () {
                if (!$(".form-horizontal").valid()) {
                    return false;
                }
            });
	  });
    });
    </script>
}